<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/WeekDay.tld" prefix="weekDay" %>
<%@ taglib uri="/WEB-INF/tld/core.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>
<jsp:include page="../pub_head.jsp">
	<jsp:param value="2" name="type"/>
</jsp:include>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="zh-cn" />
<META content="text/html; charset=UTF-8" http-equiv="Content-Type">
<META http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<title>核对订单–国内酒店预订查询服务</title>
<link href="css/orderforms.css" type="text/css" rel="stylesheet" media="all" />
</head>
<body>
<!--Header Begin-->
<!--Header include start-->
<!-- top 专题小头部 start -->
<!-- top 专题小头部 end -->
<!--Header include end-->
<!--Header End-->
<div class="wrapper clearfix">
  <div class="stepout fillingt hotel">
    <h1>核对订单信息</h1>
    <ul>
      <li class="current">选择</li>
      <li class="current">预订</li>
      <li class="current">核对</li>
      <li>完成</li>
    </ul>
  </div>
          
  <!--Left Sidebar Begin-->
  <div class="mainorder left">
    <div class="gotocit htinf">
      <div class="t"><span></span>
        <h2>您预订的酒店信息</h2>
        <em><a href="javascript:void(0)" class="tipi">预订温馨提示</a></em> </div>
	
      <div class="tsart">
        <h2>${hotelInfo.hotelName }</h2>
			
 </div>
 
      <table>
      	<tr><td><strong>地址：</strong>${hotelInfo.address }</td></tr>
        <tr>
          <td><strong>您选择的房型：</strong>${room.roomName}&nbsp; [床型：${room.bedType}&nbsp;|&nbsp;上网：${room.rates[0].broadNet }&nbsp;|&nbsp;早餐：${room.rates[0].meal }]</td>
         </tr>
         <tr> 
          <td><strong>入住日期：</strong>${order.checkInDate }&nbsp; <strong>离店日期：</strong>${order.checkOutDate }&nbsp; <strong>预订房间数：</strong><span>${order.numberOfRooms }</span> 间</td>
        </tr>
      </table>
      <ul>
        <li style="line-height: 18px;"><strong>房型信息：</strong>${room.description }
					<input type="hidden" id="bftype_up" name="bftype_up" value="" />
					<input type="hidden" id="bfprice_up" name="bfprice_up" value="" />
					<input type="hidden" id="roomtypename_up" name="roomtypename_up" value="${room.roomName }" />
					</li>
      </ul>
    </div>
     <c:if test="${credit!=null}">
    <!-- 信息信用卡信息开始 -->
   
    <div class="opb ck ht">
        <div align="center">
        <h3 style="color: #2B7ECE">信用卡信息</h2>
         </div>
      <div class="opbc clearfix">
        <div class="opbright">
          <ul><li class="txt">合作卡种： </li>
          <li>${credit.creditCardType}</li>
          </ul>
          <ul>
            <li class="txt">卡号：</li>
            <li> ${credit.creditCardNumber}&nbsp;验证码：${credit.cvv }</li>
          </ul>
          <ul>
            <li class="txt">持卡人：</li>
            <li> ${credit.creditCardHolderName} 有效期：${credit.expired }</li>
          </ul>
          <ul>
            <li class="txt">证件类型：</li>
            <li> ${credit.idCardType}</li>
          </ul>
          <ul>
            <li class="txt">证件号码：</li>
            <li> ${credit.idCardNumber}</li>
          </ul>
        </div>
      </div>
    </div>
    <!-- 信用卡信息结束 --></c:if>
    <!--入住人信息 Begin-->
    <div class="opb ck ht">
      <div class="t">
        <h2>入住人信息</h2>
         <span>1</span></div>
      <div class="opbc clearfix">
        <div class="opbright">
          <ul><li class="txt">姓&nbsp;&nbsp;&nbsp;&nbsp;名： </li>
          <li>${order.paxName }</li>
          </ul>
          <ul>
            <li class="txt">最早到达时间：</li>
            <li> ${order.arrivalTimeFrom }</li>
          </ul>
          <ul>
            <li class="txt">最晚到达时间：</li>
            <li> ${order.arrivalTimeTo }</li>
          </ul>
        </div>
      </div>
    </div>
    <!--入住人信息 End-->
    <!--联系人信息 Begin-->
    <div class="opb lx">
      <div class="t">
        <h2>联系人信息</h2>
        <span>2</span></div>
      <div class="opbc">
        <div class="opbright">
          <ul>
          	<li class="txt">姓&nbsp;&nbsp;&nbsp;&nbsp;名： </li>
          	<li>${order.name}</li>
          </ul>
          <ul>
            <li class="txt">手 机 号：</li>
            <li>${order.mobile}</li>
          </ul>
          <ul>
            <li class="txt">联系电话：</li>
            <li>${fn:trim(order.tele)==""?"无":order.tele }</li>
          </ul><%--
          <ul>
            <li class="txt">订单确认方式：</li>
            <li>
              电子邮件确认
            </li>
          </ul>
        --%></div>
      </div>
    </div>
    <!--联系人信息 End-->
    <div class="subdiv"><a id="submitorder" class="submit" id="subbtn" href="javascript:submitOrder();">下一步，核对订单</a></div>
  </div>
  <form action="/hotel/orderAssure.do" id="subForm" method="post">
  	<input type="hidden" name="order.nationality" value="${order.nationality }" />
  	<input type="hidden" name="order.paxName" value="${order.paxName }" />
  	<input type="hidden" name="order.mobile" value="${order.mobile }" />
  	<input type="hidden" name="order.tel" value="${order.tel }" />
  	<input type="hidden" name="order.city" value="${order.city }" />
  	<input type="hidden" name="order.hotelName" value="${order.hotelName }" />
  	<input type="hidden" name="order.item" value="${order.item }" />
  	<input type="hidden" name="order.roomNo" value="${order.roomNo }" />
  	<input type="hidden" name="order.roomType" value="${order.roomType }" />
  	<input type="hidden" name="order.numberOfRooms" value="${order.numberOfRooms }" />
  	<input type="hidden" name="order.arrivalTimeTo" value="${order.arrivalTimeTo }" />
  	<input type="hidden" name="order.arrivalTimeFrom" value="${order.arrivalTimeFrom }" />
  	<input type="hidden" name="order.payType" value="${order.payType }" />
  	<input type="hidden" name="order.dateType" value="${order.dateType }" />
  	<input type="hidden" name="order.formDate" value="${order.formDate }" />
  	<input type="hidden" name="order.toDate" value="${order.toDate }" />
  	<input type="hidden" name="order.otherRemark" value="${order.otherRemark }" />
  	<input type="hidden" name="order.checkInDate" value="${order.checkInDate }" />
  	<input type="hidden" name="order.checkOutDate" value="${order.checkOutDate }" />
  	<input type="hidden" name="order.sms" value="${order.sms }" />
  	<input type="hidden" name="order.tele" value="${order.tele }" />
  	<input type="hidden" name="order.manualfax" value="${order.email }" />
  	<input type="hidden" name="order.email" value="${order.email }" />
  	<input type="hidden" name="order.name" value="${order.name}" />
  	<input type="hidden" name="order.totalSalePrice" value="${order.totalSalePrice}" />
  	<input type="hidden" name="order.webOrder" value="${order.webOrder }" />
  	<c:if test="${credit!=null}">
  	<input type="hidden" name="guran" value="1"/>
  	<input type="hidden" name="credit.creditCardType" value="${credit.creditCardType}" />
  	<input type="hidden" name="credit.creditCardNumber" value="${credit.creditCardNumber}" />
  	<input type="hidden" name="credit.cvv" value="${credit.cvv}" />
  	<input type="hidden" name="credit.creditCardHolderName" value="${credit.creditCardHolderName}" />
  	<input type="hidden" name="credit.expired" value="${credit.expired}" />
  	<input type="hidden" name="credit.idCardType" value="${credit.idCardType}" />
  	<input type="hidden" name="credit.idCardNumber" value="${credit.idCardNumber}" />
  	</c:if>
  </form>
  <!--Left Sidebar End-->
  <!--Right Sidebar Begin-->
  <div class="sideRight right" id="adside">
    <div class="fillingin">
      <h2>费用总计</h2>
      <ul>
        <li><strong>付款方式：</strong><span>
						前台自付
        </span></li>
        <li><strong>每日房费</strong>
        <p>
         <logic:iterate id="rate" name="room" property="rates">
        	<P>${rate.date}&nbsp;（<weekDay:weekDay strDateTime="${rate.date}"/>）：<SPAN>&yen;${rate.salePrice}</SPAN></P> 	
         </logic:iterate>
        </p>
        </li><li>预订<span>${order.numberOfRooms }</span>间</li></ul>
		<div class="totalcost">费用总计：<span>&yen;${order.totalSalePrice }元</span></div>
    </div>
    <div class="tel12580"><img src="/images/tel.jpg" width="220" height="92" /></div>
  </div>
</div>
<div id="loading" style="display:none; border: solid 10px #247FB6; height: 80px;background-color: #FFFFFF;">
	<ul>
    	<li id="showcontent" class="tbig" style="height: 80px; line-height: 80px; vertical-align: middle;font-weight: bolder; color: black"><p>正在为您提交订单，请稍候...</p></li>
    </ul> 
</div>
<!--Footer Begin-->
<!--Footer Start-->
<%@include file="../footer.jsp" %>
<!--Footer End-->
<!--Footer End-->

<!--Select Begin-->

<!--Select End-->
<script type="text/javascript" src="/script/ticket/loadLight.js"></script>
<script type="text/javascript" src="/script/jquery.cluetip.js"></script>
<script type="text/javascript" src="/script/jquery.layer.js"></script>
<script type="text/javascript" src="/script/jquery.orders.js"></script>
<script type="text/javascript" src="script/zDrag.js"></script>
<script type="text/javascript" src="script/zDialog.js"></script>
<script type="text/javascript">
$(function(){
	$("#keSi").layerList("#keSiList");
	$("#zJian").layerList("#zJianSelect");
	$("#banks").layerList("#banksSelect");
});
function submitOrder(){
reSubmit_fun();
$("#subForm").submit();
}

function reSubmit_fun(){
ShowDivWin(450,230,'loading');
$('#subbtn').attr('disabled','disabled');
}
function ShowDivWin(DW,DH,Did)
{
	var diag = new dialogLayer();
	diag.Width = DW;
	diag.Height =DH;
	diag.InvokeElementId=Did
	diag.show();
}
</script>
<%--<script type="text/javascript">javascript:window.history.forward(1);</script>
--%></body>
</html>
